docs: map custom_instructions to --append-system-prompt (#1480)#1484
Open
farmer-data wants to merge 1 commit into
Open
docs: map custom_instructions to --append-system-prompt (#1480)#1484farmer-data wants to merge 1 commit into
farmer-data wants to merge 1 commit into
Conversation
) The v1 migration guide mapped the v0 `custom_instructions` input to `claude_args: --system-prompt`, but these have different semantics: `custom_instructions` *appended* to Claude Code's default system prompt, while `--system-prompt` *replaces* it entirely. Users who followed the guide silently lost the whole built-in system prompt (tool-usage guidance, sub-agent conventions, etc.), keeping only their few custom lines. Fixes anthropics#1480: - Map `custom_instructions` -> `--append-system-prompt` (matches v0 append semantics) in the deprecated-inputs table, the migration example, and the checklist. - Correct the claude_args options table: `--system-prompt` replaces the entire prompt; add an `--append-system-prompt` row for append behavior. Docs-only; no code changes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #1480. The v1 migration guide maps the v0
custom_instructionsinput toclaude_args: --system-prompt, but the semantics differ:custom_instructions(v0) appended to Claude Code's default system prompt.--system-promptreplaces the entire default system prompt.Anyone following the guide silently lost the whole built-in Claude Code system prompt (tool-usage guidance, sub-agent conventions, etc.), keeping only their custom lines. The append-semantics equivalent is
--append-system-prompt.Credit to @szihs for the report and the self-contained reproducer in #1480, which captures the composed
systemfield on the wire and shows--system-promptdropping the default prompt while--append-system-promptsupplements it.Changes (
docs/migration-guide.md, docs-only)custom_instructions→--append-system-promptin the deprecated-inputs table, the migration example, and the migration checklist.claude_argsoptions table:--system-promptreplaces the entire default system prompt; add an--append-system-promptrow for append behavior.Scope
Covers suggestions (1) and (2) from #1480. The optional runtime warning when
claude_argscontains--system-prompt— suggestion (3) — is a code change and is intentionally left as a separate follow-up.Verification
bun run format:check→ clean--append-system-promptthroughclaude_args.🤖 Generated with Claude Code